/*  1:   */ package org.jetbrains.jps.model.serialization.impl;
/*  2:   */ 
/*  3:   */

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.jps.model.ex.JpsElementBase;
import org.jetbrains.jps.model.serialization.JpsPathVariablesConfiguration;

import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */ 
/* 11:   */ public class JpsPathVariablesConfigurationImpl
/* 12:   */   extends JpsElementBase<JpsPathVariablesConfigurationImpl>
/* 13:   */   implements JpsPathVariablesConfiguration
/* 14:   */ {
/* 15:   */   private Map<String, String> a;
/* 16:   */   
/* 17:   */   public JpsPathVariablesConfigurationImpl()
/* 18:   */   {
/* 19:34 */     this.a = new LinkedHashMap();
/* 20:   */   }
/* 21:   */   
/* 22:   */   private JpsPathVariablesConfigurationImpl(Map<String, String> paramMap)
/* 23:   */   {
/* 24:38 */     this.a = new LinkedHashMap(paramMap);
/* 25:   */   }
/* 26:   */   
/* 27:   */   @NotNull
/* 28:   */   public JpsPathVariablesConfigurationImpl createCopy()
/* 29:   */   {
/* 30:44 */     void tmp11_8 = new JpsPathVariablesConfigurationImpl(this.a);
/* 31:44 */     if (tmp11_8 == null) {
/* 32:44 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/serialization/impl/JpsPathVariablesConfigurationImpl", "createCopy" }));
/* 33:   */     }
/* 34:44 */     return tmp11_8;
/* 35:   */   }
/* 36:   */   
/* 37:   */   public void applyChanges(@NotNull JpsPathVariablesConfigurationImpl paramJpsPathVariablesConfigurationImpl)
/* 38:   */   {
/* 39:49 */     if (paramJpsPathVariablesConfigurationImpl == null) {
/* 40:49 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/serialization/impl/JpsPathVariablesConfigurationImpl", "applyChanges" }));
/* 41:   */     }
/* 42:   */   }
/* 43:   */   
/* 44:   */   public void addPathVariable(@NotNull String paramString1, @NotNull String paramString2)
/* 45:   */   {
/* 46:53 */     if (paramString1 == null) {
/* 47:53 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/serialization/impl/JpsPathVariablesConfigurationImpl", "addPathVariable" }));
/* 48:   */     }
/* 49:53 */     if (paramString2 == null) {
/* 50:53 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/jps/model/serialization/impl/JpsPathVariablesConfigurationImpl", "addPathVariable" }));
/* 51:   */     }
/* 52:53 */     this.a.put(paramString1, paramString2);
/* 53:   */   }
/* 54:   */   
/* 55:   */   public void removePathVariable(@NotNull String paramString)
/* 56:   */   {
/* 57:58 */     if (paramString == null) {
/* 58:58 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/serialization/impl/JpsPathVariablesConfigurationImpl", "removePathVariable" }));
/* 59:   */     }
/* 60:58 */     this.a.remove(paramString);
/* 61:   */   }
/* 62:   */   
/* 63:   */   @Nullable
/* 64:   */   public String getPathVariable(@NotNull String paramString)
/* 65:   */   {
/* 66:64 */     if (paramString == null) {
/* 67:64 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/serialization/impl/JpsPathVariablesConfigurationImpl", "getPathVariable" }));
/* 68:   */     }
/* 69:64 */     return getUserVariableValue(paramString);
/* 70:   */   }
/* 71:   */   
/* 72:   */   @Nullable
/* 73:   */   public String getUserVariableValue(@NotNull String paramString)
/* 74:   */   {
/* 75:70 */     if (paramString == null) {
/* 76:70 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/serialization/impl/JpsPathVariablesConfigurationImpl", "getUserVariableValue" }));
/* 77:   */     }
/* 78:70 */     return (String)this.a.get(paramString);
/* 79:   */   }
/* 80:   */   
/* 81:   */   @NotNull
/* 82:   */   public Map<String, String> getAllVariables()
/* 83:   */   {
/* 84:76 */     Map tmp4_1 = getAllUserVariables();
/* 85:76 */     if (tmp4_1 == null) {
/* 86:76 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/serialization/impl/JpsPathVariablesConfigurationImpl", "getAllVariables" }));
/* 87:   */     }
/* 88:76 */     return tmp4_1;
/* 89:   */   }
/* 90:   */   
/* 91:   */   @NotNull
/* 92:   */   public Map<String, String> getAllUserVariables()
/* 93:   */   {
/* 94:82 */     Map tmp7_4 = Collections.unmodifiableMap(this.a);
/* 95:82 */     if (tmp7_4 == null) {
/* 96:82 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/serialization/impl/JpsPathVariablesConfigurationImpl", "getAllUserVariables" }));
/* 97:   */     }
/* 98:82 */     return tmp7_4;
/* 99:   */   }
/* :0:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.serialization.impl.JpsPathVariablesConfigurationImpl

 * JD-Core Version:    0.7.0.1

 */